/* Enterprise Certificate Query System Stylesheet */

:root {
    --primary-color: #1a5cad;
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
    --text-main: #333;
    --text-muted: #666;
    --accent-color: #e74c3c;
    --border-radius: 12px;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

header p {
    color: var(--text-muted);
}

/* Selector Component Styling */
.selector-wrapper {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

label {
    font-weight: bold;
    color: var(--primary-color);
}

select {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #ddd;
    outline: none;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 92, 173, 0.1);
}

/* Main Display Area */
.display-area {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

/* Image Viewer Styling */
.image-viewer {
    background: #2c3e50;
    padding: 40px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer img {
    max-width: 100%;
    max-height: 700px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    border: 4px solid white;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-viewer img:hover {
    transform: scale(1.02);
}

/* Detailed Information Panel */
.details-panel {
    padding: 40px;
    background: white;
}

.details-panel h2 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.info-item {
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.info-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-main);
}

.status-tag {
    background: #27ae60;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .image-viewer {
        padding: 20px;
        min-height: 300px;
    }

    .details-panel {
        padding: 25px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    select {
        max-width: 100%;
    }
}

/* Smooth Switching Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}